package com.csdig.html.dao;

import com.csdig.html.model.ForumPost;

import java.util.List;

/**
 * @author wei_jc
 * @since 1.0.0
 */
public interface ForumPostDao {
    void add(ForumPost vo) throws Exception;

    void update(ForumPost vo) throws Exception;

    void delete(int postId) throws Exception;

    ForumPost findById(int postId) throws Exception;

    List<ForumPost> findByCondition(ForumPost vo) throws Exception;

    List<ForumPost> listAll() throws Exception;
}
